﻿@using CMSMVC4.MultiResource
@model System.Data.DataTable
@if (Model != null)
{
    if (Model.Rows.Count >= 3)
    {
    <div id="tintuc_top">
        <div class="tintuc_top_title">
            <a href="/TinTuc">@Resource.MostViewed</a></div>
        <div class="tintuc_top_tieude1">
            <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[0]["PageId"].ToString() })">@Model.Rows[0]["Name"].ToString()</a></div>
        <div class="tintuc_top_warperanh">
            <div class="tintuc_top_warperanh_left">
                <div class="tintuc_top_warperanh_left_anh">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[0]["PageId"].ToString() })">
                    <img src="@Model.Rows[0]["Img"].ToString()" width="462" height="253" border="0" />
                    </a>
                </div>
                <div class="tintuc_top_warperanh_left_sumany">
                     @Html.Raw(Model.Rows[0]["Summary"].ToString())  
                </div>
                <div class="tintuc_top_warperanh_left_redmore" align="right">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[0]["PageId"].ToString() })">@Resource.ReadContinue</a></div>
            </div>
            <div class="tintuc_top_warperanh_right">
                <div class="tintuc_top_warperanh_right_anh">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[1]["PageId"].ToString() })">
                        <img src="@Model.Rows[1]["Img"].ToString()" width="250" height="125" border="0" /></a>
                    </div>
                <div class="tintuc_top_warperanh_right_title">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[1]["PageId"].ToString() })">@Model.Rows[1]["Name"].ToString()</a>
                </div>
                <div class="tintuc_top_warperanh_right_anh">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[2]["PageId"].ToString() })">
                    <img src="@Model.Rows[2]["Img"].ToString()" width="250" height="125" border="0" />
                </a>
                </div>
                <div class="tintuc_top_warperanh_right_title">
                    <a href="@Url.Action("BaiViet", "TinTuc", new { id = Model.Rows[2]["PageId"].ToString() })">@Model.Rows[2]["Name"].ToString()</a>
                </div>
            </div>
        </div>
    </div>
    }
}
